package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-08-02 09:47:13.772
 */
@Entity
@Table(name = "INS_WF",catalog = "wfdb")
public class InsWf implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "INS_WF";

    /**流程实例编号 */
	public static final String ALIAS_INS_FLOW_ID = "INS_FLOW_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**流程编码 */
	public static final String ALIAS_FLOW_CODE = "FLOW_CODE";
    /**流程名称 */
	public static final String ALIAS_FLOW_NAME = "FLOW_NAME";
    /**流程描述 */
	public static final String ALIAS_FLOW_DESC = "FLOW_DESC";
    /**流程状态: 1 处理中 2 完成 -1 异常 */
	public static final String ALIAS_FLOW_STATE = "FLOW_STATE";
    /** */
	public static final String ALIAS_STATE = "STATE";
    /** */
	public static final String ALIAS_CREATE_UID = "CREATE_UID";
    /** */
	public static final String ALIAS_CREATE_UNAME = "CREATE_UNAME";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
    /** */
	public static final String ALIAS_FLOW_VERSION = "FLOW_VERSION";
    /** */
	public static final String ALIAS_PARTY_ID = "PARTY_ID";
    /** */
	public static final String ALIAS_DEAL_TIME = "DEAL_TIME";
    /** */
	public static final String ALIAS_FLOW_ATTR_1 = "FLOW_ATTR_1";
    /** */
	public static final String ALIAS_FLOW_ATTR_2 = "FLOW_ATTR_2";
    /** */
	public static final String ALIAS_FLOW_ATTR_3 = "FLOW_ATTR_3";
    /** */
	public static final String ALIAS_FLOW_ATTR_4 = "FLOW_ATTR_4";
    /** */
	public static final String ALIAS_FLOW_ATTR_5 = "FLOW_ATTR_5";
    /** */
	public static final String ALIAS_FLOW_ATTR_6 = "FLOW_ATTR_6";
    /** */
	public static final String ALIAS_FLOW_ATTR_7 = "FLOW_ATTR_7";
    /** */
	public static final String ALIAS_FLOW_ATTR_8 = "FLOW_ATTR_8";
    /** */
	public static final String ALIAS_FLOW_ATTR_9 = "FLOW_ATTR_9";
    /** */
	public static final String ALIAS_FLOW_ATTR_10 = "FLOW_ATTR_10";
    /**经度 */
	public static final String ALIAS_LONGITUDE = "LONGITUDE";
    /**纬度 */
	public static final String ALIAS_LATITUDE = "LATITUDE";
    /** */
	public static final String ALIAS_ADDRESS = "ADDRESS";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "INS_FLOW_ID", unique = true, nullable = false)
    public java.lang.Long insFlowId;

	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "FLOW_CODE")
    public java.lang.String flowCode;
  
 	@Column(name = "FLOW_NAME")
    public java.lang.String flowName;
  
 	@Column(name = "FLOW_DESC")
    public java.lang.String flowDesc;
  
 	@Column(name = "FLOW_STATE")
    public java.lang.Long flowState;
  
 	@Column(name = "STATE")
    public java.lang.Long state;
  
 	@Column(name = "CREATE_UID")
    public java.lang.Long createUid;
  
 	@Column(name = "CREATE_UNAME")
    public java.lang.String createUname;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  
 	@Column(name = "FLOW_VERSION")
    public java.lang.String flowVersion;
  
 	@Column(name = "PARTY_ID")
    public java.lang.Long partyId;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DEAL_TIME")
    public java.util.Date dealTime;
  
 	@Column(name = "FLOW_ATTR_1")
    public java.lang.String flowAttr1;
  
 	@Column(name = "FLOW_ATTR_2")
    public java.lang.String flowAttr2;
  
 	@Column(name = "FLOW_ATTR_3")
    public java.lang.String flowAttr3;
  
 	@Column(name = "FLOW_ATTR_4")
    public java.lang.String flowAttr4;
  
 	@Column(name = "FLOW_ATTR_5")
    public java.lang.String flowAttr5;
  
 	@Column(name = "FLOW_ATTR_6")
    public java.lang.String flowAttr6;
  
 	@Column(name = "FLOW_ATTR_7")
    public java.lang.String flowAttr7;
  
 	@Column(name = "FLOW_ATTR_8")
    public java.lang.String flowAttr8;
  
 	@Column(name = "FLOW_ATTR_9")
    public java.lang.String flowAttr9;
  
 	@Column(name = "FLOW_ATTR_10")
    public java.lang.String flowAttr10;
  
 	@Column(name = "LONGITUDE")
    public java.lang.String longitude;
  
 	@Column(name = "LATITUDE")
    public java.lang.String latitude;
  
 	@Column(name = "ADDRESS")
    public java.lang.String address;
  





	public java.lang.Long getInsFlowId() {
		return this.insFlowId;
	}
	
	public void setInsFlowId(java.lang.Long value) {
		this.insFlowId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getFlowCode() {
		return this.flowCode;
	}
	
	public void setFlowCode(java.lang.String value) {
		this.flowCode = value;
	}

	public java.lang.String getFlowName() {
		return this.flowName;
	}
	
	public void setFlowName(java.lang.String value) {
		this.flowName = value;
	}

	public java.lang.String getFlowDesc() {
		return this.flowDesc;
	}
	
	public void setFlowDesc(java.lang.String value) {
		this.flowDesc = value;
	}

	public java.lang.Long getFlowState() {
		return this.flowState;
	}
	
	public void setFlowState(java.lang.Long value) {
		this.flowState = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.lang.Long getCreateUid() {
		return this.createUid;
	}
	
	public void setCreateUid(java.lang.Long value) {
		this.createUid = value;
	}

	public java.lang.String getCreateUname() {
		return this.createUname;
	}
	
	public void setCreateUname(java.lang.String value) {
		this.createUname = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.String getFlowVersion() {
		return this.flowVersion;
	}
	
	public void setFlowVersion(java.lang.String value) {
		this.flowVersion = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.util.Date getDealTime() {
		return this.dealTime;
	}
	
	public void setDealTime(java.util.Date value) {
		this.dealTime = value;
	}

	public java.lang.String getFlowAttr1() {
		return this.flowAttr1;
	}
	
	public void setFlowAttr1(java.lang.String value) {
		this.flowAttr1 = value;
	}

	public java.lang.String getFlowAttr2() {
		return this.flowAttr2;
	}
	
	public void setFlowAttr2(java.lang.String value) {
		this.flowAttr2 = value;
	}

	public java.lang.String getFlowAttr3() {
		return this.flowAttr3;
	}
	
	public void setFlowAttr3(java.lang.String value) {
		this.flowAttr3 = value;
	}

	public java.lang.String getFlowAttr4() {
		return this.flowAttr4;
	}
	
	public void setFlowAttr4(java.lang.String value) {
		this.flowAttr4 = value;
	}

	public java.lang.String getFlowAttr5() {
		return this.flowAttr5;
	}
	
	public void setFlowAttr5(java.lang.String value) {
		this.flowAttr5 = value;
	}

	public java.lang.String getFlowAttr6() {
		return this.flowAttr6;
	}
	
	public void setFlowAttr6(java.lang.String value) {
		this.flowAttr6 = value;
	}

	public java.lang.String getFlowAttr7() {
		return this.flowAttr7;
	}
	
	public void setFlowAttr7(java.lang.String value) {
		this.flowAttr7 = value;
	}

	public java.lang.String getFlowAttr8() {
		return this.flowAttr8;
	}
	
	public void setFlowAttr8(java.lang.String value) {
		this.flowAttr8 = value;
	}

	public java.lang.String getFlowAttr9() {
		return this.flowAttr9;
	}
	
	public void setFlowAttr9(java.lang.String value) {
		this.flowAttr9 = value;
	}

	public java.lang.String getFlowAttr10() {
		return this.flowAttr10;
	}
	
	public void setFlowAttr10(java.lang.String value) {
		this.flowAttr10 = value;
	}

	public java.lang.String getLongitude() {
		return this.longitude;
	}
	
	public void setLongitude(java.lang.String value) {
		this.longitude = value;
	}

	public java.lang.String getLatitude() {
		return this.latitude;
	}
	
	public void setLatitude(java.lang.String value) {
		this.latitude = value;
	}

	public java.lang.String getAddress() {
		return this.address;
	}
	
	public void setAddress(java.lang.String value) {
		this.address = value;
	}


	
	public InsWf() {
	}
	
	public InsWf(boolean qryflag) {
	    if(qryflag){
	    		this.insFlowId = null;
				this.flowId = null;
				this.flowCode = null;
				this.flowName = null;
				this.flowDesc = null;
				this.flowState = null;
				this.state = null;
				this.createUid = null;
				this.createUname = null;
				this.createTime = null;
				this.flowVersion = null;
				this.partyId = null;
				this.dealTime = null;
				this.flowAttr1 = null;
				this.flowAttr2 = null;
				this.flowAttr3 = null;
				this.flowAttr4 = null;
				this.flowAttr5 = null;
				this.flowAttr6 = null;
				this.flowAttr7 = null;
				this.flowAttr8 = null;
				this.flowAttr9 = null;
				this.flowAttr10 = null;
				this.longitude = null;
				this.latitude = null;
				this.address = null;
			    }
	}


	public InsWf(
	    java.lang.Long inInsFlowId,
	    java.lang.Long inFlowId,
	    java.lang.String inFlowCode,
	    java.lang.String inFlowName,
	    java.lang.String inFlowDesc,
	    java.lang.Long inFlowState,
	    java.lang.Long inState,
	    java.lang.Long inCreateUid,
	    java.lang.String inCreateUname,
	    java.util.Date inCreateTime,
	    java.lang.String inFlowVersion,
	    java.lang.Long inPartyId,
	    java.util.Date inDealTime,
	    java.lang.String inFlowAttr1,
	    java.lang.String inFlowAttr2,
	    java.lang.String inFlowAttr3,
	    java.lang.String inFlowAttr4,
	    java.lang.String inFlowAttr5,
	    java.lang.String inFlowAttr6,
	    java.lang.String inFlowAttr7,
	    java.lang.String inFlowAttr8,
	    java.lang.String inFlowAttr9,
	    java.lang.String inFlowAttr10,
	    java.lang.String inLongitude,
	    java.lang.String inLatitude,
		java.lang.String inAddress
	 ) {
		super();
				this.insFlowId = inInsFlowId;
				this.flowId = inFlowId;
				this.flowCode = inFlowCode;
				this.flowName = inFlowName;
				this.flowDesc = inFlowDesc;
				this.flowState = inFlowState;
				this.state = inState;
				this.createUid = inCreateUid;
				this.createUname = inCreateUname;
				this.createTime = inCreateTime;
				this.flowVersion = inFlowVersion;
				this.partyId = inPartyId;
				this.dealTime = inDealTime;
				this.flowAttr1 = inFlowAttr1;
				this.flowAttr2 = inFlowAttr2;
				this.flowAttr3 = inFlowAttr3;
				this.flowAttr4 = inFlowAttr4;
				this.flowAttr5 = inFlowAttr5;
				this.flowAttr6 = inFlowAttr6;
				this.flowAttr7 = inFlowAttr7;
				this.flowAttr8 = inFlowAttr8;
				this.flowAttr9 = inFlowAttr9;
				this.flowAttr10 = inFlowAttr10;
				this.longitude = inLongitude;
				this.latitude = inLatitude;
				this.address = inAddress;
			}

	@Transient
	public java.lang.String userName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}

